<?php
defined('BY_JYA') or exit('error');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();
$return['types']=array('1'=>'路帮违章');
if($_RQ['op']=='get'){
	$return['item']=array();
	$return['item']['code']="获取简称：cfc('jy_loopon')->lubang_cities();获取违章信息：cfc('jy_loopon')->lubang_api($plate1,$plate2,$plate_number,$engine_number,$frame_number);";
	$return['htmls']=array (
		  'type' => 'edit',
		  'post' => 'post',
		  'edit_tab' => '基本信息',
		  'edits' => 
		  array (
		    0 => 
		    array (
		      'title' => '基本信息',
		      'list' => 
		      array (
				array ('name' => 'type','type' => 'radio','options'=>'types','title' => '接口类型'),
				array ('name' => 'lubang_apiid','type' => 'string','title' => '路帮ID','show'=>array('type'=>1),'help'=>'接口说明：http://www.loopon.cn/freeapi/weizhang'),
				array ('name' => 'lubang_appkey','type' => 'string','title' => '路帮KEY','show'=>array('type'=>1),'help'=>'接口说明：http://www.loopon.cn/freeapi/weizhang'),
		        array ('name' => 'plate_number','type' => 'plate','options'=>'lubang_cities','title' => '车牌号'),
				array ('name' => 'engine_number','type' => 'string','title' => '发动机号'),
				array ('name' => 'frame_number','type' => 'string','title' => '车架号'),
				array ('name' => 'city','type' => 'pcd','options'=>'pcd','title' => '选择城市'),
				array ('name' => 'code','type' => 'copy','title' => '调用方法'),
		      ),
		    ),
		  ),
	);
	$citiesdata=$this->lubang_cities();
	$return['lubang_cities']=$citiesdata['data'];
	$return['lubang_api']=$this->lubang_api($plate1,$plate2,$plate_number,$engine_number,$frame_number);
	$return['pcd']=cfc('tools')->pcd();	
	exi($return);
}
?>